/* פונטים - כאן תצטרך להגדיר את הפונטים שבהם השתמשת בתמונה */
/* לדוגמה: */
/* @import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;700&display=swap'); */

:root {
    --primary-pink: #ff0000; /* ורוד בהיר */
    --dark-pink: #c90069; /* ורוד כהה יותר */
    --light-gray: #f0f0f0;
    --dark-gray: #333;
    --text-color: #333;
    --white: #fff;
    --border-radius: 10px;
}

* {
    box-sizing: border-box;
      font-family: 'Noto Sans Hebrew', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif; /* פונט גנרי, שנה בהתאם לפונטים שלך */
    direction: rtl;
    text-align: right;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}
.top-info {
  background: #f0f0f0;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}

.leagues-bar {
  display: flex;
  align-items: center;
   position: relative;
  justify-content: space-between;
  background: #ffffff;
  padding: 15px 30px;
  border-bottom: 1px solid #ddd;
  height: 80px;
  z-index: 2;
}


.uefa-logo {
  height: 80px;
  width: auto;
  position: relative;
  top: -5px; /* שנה את המספר לפי כמה שתרצה להרים */
}

.leagues-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  transform: translateX(10px); /* הזזה קלה ימינה של כל התפריט */
  position: relative; /* חשוב עבור מיקום תפריטי המשנה */
  z-index: 100; /* ודא שהתפריט מעל אלמנטים אחרים */
}

.leagues-menu li {
  position: relative; /* חשוב למיקום המוחלט של תתי-התפריטים */
  transition: transform 0.2s ease;
  /* הסגנונות הכלליים של פריטי הליגה הראשיים */
  background-color: #e9e9e9;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer; /* כדי שיהיה ברור שזה לחיץ */
}

.leagues-menu li:hover {
  transform: scale(1.05); /* הגדלה קלה ברחיפה על הפריט הראשי */
  background-color: #d0d0d0;
}

.leagues-menu li a.league-link { /* סגנון לקישור של הליגה הראשית */
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block; /* כדי שהקישור יתפוס את כל שטח ה-li */
}

/* סגנונות תתי-התפריטים (הקבוצות) */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%; /* ממוקם מתחת לפריט ה-li ההורה */
  right: 0; /* יישור לימין של פריט ה-li ההורה ב-RTL */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 0;
  min-width: 180px; /* רוחב מינימלי לתפריט המשנה */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0; /* הסתרת התפריט כברירת מחדל */
  visibility: hidden; /* הסתרת התפריט כברירת מחדל */
  transform: translateY(10px); /* הזזה קלה למטה לאפקט הנפילה */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 101; /* ודא שהוא מעל התפריט הראשי */
}

.has-submenu.active .submenu { /* כאשר ה-li ההורה פעיל, הצג את תפריט המשנה */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  background-color: transparent; /* מבטל את הרקע של הפריטים הראשיים */
  padding: 0; /* מבטל את הריפוד של הפריטים הראשיים */
  border-radius: 0; /* מבטל את הפינות המעוגלות */
  width: 100%; /* ודא שפריטי הקבוצות תופסים את מלוא הרוחב של הסאבמנו */
}

.submenu li a {
  display: flex; /* שימוש ב-flexbox ליישור הלוגו והטקסט */
  align-items: center; /* יישור אנכי למרכז */
  padding: 8px 15px;
  text-decoration: none;
  color: #555;
  font-weight: normal;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: right; /* יישור הטקסט לימין בתוך תפריט המשנה */
  direction: rtl; /* חשוב לוודא שהכיוון הוא מימין לשמאל */
}

.submenu li a:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

/* New CSS for team logos */
.team-logo {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    margin-left: 8px; /* Space between logo and text */
    vertical-align: middle; /* Align with text */
    object-fit: contain; /* Ensures the entire image fits within the bounds */
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #ff3333, #a83000); /* דוגמה לרקע עם גרדיאנט */
    position: relative;
    height: 300px; /* גובה הרקע */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* אם יש תמונת רקע, הגדר אותה כאן */
    /* background-image: url('your-background-image.png'); */
    background-size: cover;
    background-position: center;
    opacity: 0.8; /* לשלוט בשקיפות אם יש תמונה */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Filters and Sort */
.filters-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-options, .sort-options {
    display: flex;
    align-items: center;
}

.filter-button {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: var(--light-gray);
}

.filter-icon {
    width: 20px;
    height: 20px;
    /* תמונה של אייקון הסינון */
    /* background-image: url('filter-icon.png'); */
    /* background-size: contain; */
    /* background-repeat: no-repeat; */
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--white);
    font-size: 1em;
    cursor: pointer;
    color: var(--text-color);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Match Cards Grid */
.matches-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* מרכז את הקופסאות לרוחב */
    gap: 20px;
    padding: 20px; /* מוסיף ריווח פנימי אם תרצה */
}

.match-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    width: 600px;
    max-width: 90%;
}


.match-card:hover {
    transform: translateY(-5px);
}

.match-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-range {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-pink);
}

.buy-button {
    background-color: var(--primary-pink);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: var(--dark-pink);
}

.team-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.vs {
    font-size: 1.5em;
    color: #999;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 5px;
}

.match-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.league-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: left; /* Changed from right for RTL */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-color);
    text-decoration: none;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-pink);
    font-size: 2em;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 1.4em;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.filter-group input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
    height: 8px;
    background: var(--light-gray);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
}

.filter-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
}

.filter-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 10px;
}

#minPriceValue, #maxPriceValue {
    display: block;
    text-align: center;
    font-weight: bold;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

#applyFilters, #clearFilters {
    background-color: var(--primary-pink);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

#clearFilters {
    background-color: #aaa;
    margin-top: 10px;
}

#applyFilters:hover {
    background-color: var(--dark-pink);
}

#clearFilters:hover {
    background-color: #888;
}

/* Media Queries for Responsiveness (Basic) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2em;
    }

    .filters-sort {
        flex-direction: column;
        gap: 15px;
    }

    .filter-options, .sort-options {
        width: 100%;
        justify-content: center;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        padding: 15px;
    }

    .match-details, .team-info, .match-meta {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .buy-button {
        width: 100%;
    }
}
#pagination button {
  margin: 0 5px;
  padding: 10px 5px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 19px;
}

#pagination button:hover {
  background-color: #f0f0f0;
}

#pagination button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  font-weight: bold;
  cursor: default;
}
